package com.itheima.web.Newuserregistration;


import com.itheima.web.client.userlogincontrol.Userregistration.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author 黄汉江
 * @date 2023/11/4 0:22
 * @description: springboot
 */
@Mapper
public interface UserMapper {

    // 注册新用户
     int insertUser(User user);

    // 获取用户名
    //@Select("SELECT * FROM t_user WHERE username = #{username}")
    User findByUsername(String username);

    // 获取新用户id
    int getNewUserId();


    // 删除用户信息
//    @Delete("delete from t_user where id = #{userId}")
    int deleteUser(int userId);


}
